#include "GameMessage.h"

vsznDefault(GameMessage);

GameMessage::GameMessage(MESSAGE_TYPE _type)
	: groupID(0), type( (uint8_t)_type) {
}

/******************************************************************************
 * Destructor
 *****************************************************************************/
GameMessage::~GameMessage(){

} // ~AnyChatMessage


GameMessage::MESSAGE_TYPE GameMessage::getType(){

	return (MESSAGE_TYPE)type;

} // getType

void GameMessage::setGroupID(uint16_t groupID){
	this->groupID = groupID;
}

uint16_t GameMessage::getGroupID(){
	return groupID;
}

/******************************************************************************
 * Checks message type
 * @param _type Message type to check for
 * @return True, if message type matches
 *****************************************************************************/
bool GameMessage::isType(MESSAGE_TYPE _type){

	return (MESSAGE_TYPE)type == _type;

} // isType

